﻿using FastBuild.TimeJob;
using System.Diagnostics;

namespace Wechat_PublicNumber.Jobs
{
    [SkipWhileExecuting, ExecuteNow]
    public class TestTimeJob : DataAccess, IJob
    {
        [Autowired]
        private ILog log;

        public async Task Execute()
        {
            Console.WriteLine($"TestTimeJob {DateTime.Now}");
            //await Task.Delay(5000);
            _logger.Info($"TestTimeJob {DateTime.Now}", "TestTimeJob");
            GC.Collect();
        }
    }
}
